package com.rzico.basics.amap.pojo.request;

/**
 * Created by lam on 2018/8/8.
 */
public class SearchRequest {

    private String key;

    /**
     * 围栏id
     */
    private String id;
    /**
     * 围栏全局id
     */
    private String gid;
    /**
     * 围栏名称
     */
    private String name;
    /**
     * 当前页码
     */
    private Integer pageNo;
    /**
     * 每页数量
     */
    private Integer pageSize;
    /**
     * 围栏激活状态
     */
    private Boolean enable;
    /**
     * 按创建时间查询点起始时间 yyyy-MM-dd HH:mm:ss
     */
    private String startTime;
    /**
     * 按创建时间查询点结束时间 yyyy-MM-dd HH:mm:ss
     */
    private String endTime;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getGid() {
        return gid;
    }

    public void setGid(String gid) {
        this.gid = gid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getPageNo() {
        return pageNo;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo = pageNo;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String toString() {
        String params = "key="+this.key;
        if (this.id != null) {
            params += "&id=" + this.id;
        }
        if (this.gid != null) {
            params += "&gid=" + this.gid;
        }
        if (this.name != null) {
            params += "&name=" + this.name;
        }
        if (this.pageNo != null) {
            params += "&page_no=" + this.pageNo;
        }
        if (this.pageSize != null) {
            params += "&page_size=" + this.pageSize;
        }
        if (this.enable != null) {
            params += "&enable=" + this.enable;
        }
        if (this.startTime != null) {
            params += "&start_time=" + this.startTime;
        }
        if (this.endTime != null) {
            params += "&end_time=" + this.endTime;
        }
        return params;
    }
}
